<?php include('./templete/public/header.php'); ?>
<title>积分排行榜</title>
<body>
	<header class="clearfix">
		<!-- <a class="fl header_return"><i class="iconzuojiantou1 iconfont">&#xe616;</i>返回</a> -->
		<a class="header_new">积分排行榜</a>
		<a class="fr header_more"><i class="iconmore iconfont">&#xe637;</i></a>
	</header>
	<div class="sns_container">
		<div class="sns_photo_container pr" id="munepic" style="background: url(__INDEX__/imageAddress[i]);">
			<div class="sns_photo center">
				<p>积分排行榜</p>
				<p>截止日期：<?php echo $e_date;  ?> </p>
			</div>
		</div>	
			<div class="setup_photograph">
				<?php foreach ($list as $key => $value): ?>
				<a class="setup_photograph_text clearfix">
					<div class="setup_photograph_name fl">
						<i class="iconfont my_siteup"></i>
						<?php echo $value['name'] ?>：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;积分:<?php echo $value['count'] ?>
					</div>
					
				</a>	
				<?php endforeach ?>
			</div>
	</div>
	<hr style="height: 200px;border: none;">
	<script>
	var imageAddress= new Array()
		imageAddress[0]='url(__INDEX__/images/1.jpg)';
		imageAddress[1]='url(__INDEX__/images/2.jpg)';
		imageAddress[2]='url(__INDEX__/images/3.jpg)';
	 
	function  newBackgroundImage(munepic){
    //产生一个随机数
    var i=parseInt(Math.random()*3);
    //将id＝munepic的容器的背景图片地址改为imageAddress[i]
    document.getElementById("munepic").style.backgroundImage=imageAddress[i];
}
	newBackgroundImage(munepic);


</script>
</body>
</html>

